package com.imooc.authorization.context;

import javax.servlet.http.HttpServletResponse;

/**
 * Created by Administrator on 2016/8/28.
 */
 class ResponseContext {

     private static ThreadLocal<HttpServletResponse> tl=new ThreadLocal<>();

    public static void setCurrent(HttpServletResponse response){

        tl.set(response);
    }

    public static HttpServletResponse getCurrent(){

        return tl.get();
    }

}
